<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动布局</title>
</head>
<style>
    *{
        margin:0 auto;
    }
    html,body{
        width:100%;
        height: 100%;
    }
    .container{
        width:100%;
        height:100%;
    }
    div{
        height:100%;
    }
    .left{
        background:plum;
        float: left;
    }
    .right{
        background:pink;
        float: right;
    }
    .center{
        background:yellow;
    }
</style>
<body>
    <div class="container">
        <div class="left">我是左边</div>
        <div class="right">我是右边</div>
        <div class="center">我是中间</div>
    </div>
</body>
</html>